package com.es.www.kyl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.es.www.kyl.bean.req.web.CategoryReq;
import com.es.www.kyl.bean.res.client.QuestionCompletionVO;
import com.es.www.kyl.bean.res.web.CategoryListVO;
import com.es.www.kyl.domain.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author estranger
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

	List<CategoryListVO> selectCategoryList(@Param("categoryReq") CategoryReq categoryReq);

	List<QuestionCompletionVO> selectQuestionCompletionList(@Param("userId") Integer userId);
}